package com.aatrox.bhsypro.util;

import com.aatrox.bhsypro.entity.BUser;

import java.util.HashMap;

/**
 * 统一的json返回
 */
public class JsonResult {
    int code;
    String msg;
    HashMap map;

    public JsonResult(int code, String msg, HashMap map) {
        this.code = code;
        this.msg = msg;
        this.map = map;
    }

    public JsonResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public JsonResult() {
    }


    @Override
    public String toString() {
        return "JsonResult{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", map=" + map +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public HashMap getMap() {
        return map;
    }

    public void setMap(HashMap map) {
        this.map = map;
    }
}
